var isCheckAll = false;
function swapCheck() {
	if(isCheckAll) {
		$("input[type='checkbox']").each(function() {
			this.checked = false;
		});
		isCheckAll = false;
	} else {
		$("input[type='checkbox']").each(function() {
			this.checked = true;
		});
		isCheckAll = true;
	}
}
function checkPassword(){
	var pwd = document.getElementsByName("pwd")[0];
	var repwd = document.getElementsByName("repwd")[0];
	var ret = false;
	if(pwd.value!=repwd.value){
		pwd.value="";
		repwd.value="";
		alert("两次输入密码不一致!");
		pwd.focus();
	}
	else ret = true;
	return ret;
}
